#include<stdio.h>

int AddToTop(int top)
{
  int res = 0;
  int i = 0;
  for(i = 0;i <= top;i++)
  {
    res += i;
  }
  return res;
}

int main()
{
  int top = 100;

  int result = AddToTop(top);

  printf("result:%d\n",result);

  return 0;
}
